package com.gjs.management.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gjs.common.pojo.dto.user.UserInfoDTO;
import com.gjs.management.pojo.dto.staff.StaffQueryDTO;
import com.gjs.management.pojo.entity.ManagementStaff;
import com.gjs.management.pojo.vo.staff.ManagementStaffReqVO;
import com.gjs.management.pojo.vo.staff.ManagementStaffRspVO;
import org.springframework.security.core.GrantedAuthority;

import java.util.Collection;

public interface IManagementStaffService extends IService<ManagementStaff> {
    UserInfoDTO getUserBySecurity();

    Collection<? extends GrantedAuthority> getPermissionBySecurity();

    ManagementStaffRspVO getManagementStaffRspVO(ManagementStaff staff);

    Boolean updateRole(ManagementStaffReqVO staffReqVO);

    Wrapper<ManagementStaff> buildWrapper(StaffQueryDTO queryDTO);
}
